home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Producer's Bible / Multimedia Producer's Bible.iso / mac / Debabelizer / LiteLE / DeBabelizer Lite® LEdl01.sea / DeBabelizer LiteÆ LEdl01 Folder / DeBabelizer LiteÆ 1.1.3LEdl01.rsrc / TEXT_229_AppleScript.txt < prev    next >
Encoding:
Text File  |  1996-02-02  |  4.3 KB  |  113 lines

  1. AppleScript
  2.  
  3. 1.    Run an AppleScript execution program, such as Quickeys, Script Editor, or the regular version of DeBabelizer.
  4. 2.    Give it a properly formatted AppleScript with DeBabelizer Lite commands.
  5. 3.    DeBabelizer Lite will receive them and execute them.
  6.  
  7. AppleScript Support in DeBabelizer Lite;
  8.  
  9. DeBabelizer Lite's main functions can be controlled from another application via AppleScript.
  10. The commands (in bold) are listed below. Each command is followed by its parameters.
  11. NOTE: the ellipsis (3 dots at the end of some commands) is created by entering Option semicolon.
  12.  
  13. Open
  14. - pathname of image file to open into a window.
  15. [NOTE: It is very important, when doing an "open file" AppleScript command, to set the File:Preferences:Drag & Drop option to "Slideshow Dropped Files‚Ķ". If not set this way, the opened file will be translated instead of opened.]
  16.  
  17. Save As‚Ķ
  18. - pathname of image file to which the frontmost image window will be saved.
  19. - save format name (must match one of the popup menu formats EXACTLY).
  20.   If there is a subformat, use a colon to separate the two names; e.g. "Targa:Compressed".
  21. - save # colors (must match one of the popup menu color entries EXACTLY).
  22. - aspect ratio (must match one of the popup menu aspect entries EXACTLY).
  23.  
  24. Close    
  25. - none. Will close frontmost image window.
  26. Close All            
  27. - none. Will close all image windows.
  28.                         
  29. Slideshow Folder‚Ķ
  30. - pathname to the folder of images to be displayed.
  31.  
  32. Translate Windows‚Ķ
  33. - pathname of folder to which the image windows will be saved.
  34. - save format name (must match one of the popup menu formats EXACTLY).
  35.   If there is a subformat, use a colon to separate the two names; e.g. "Targa:Compressed".
  36. - save # colors (must match one of the popup menu color entries EXACTLY).
  37. - aspect ratio (must match one of the popup menu aspect entries EXACTLY).
  38. - naming method will be whatever is currently set in the program.
  39.  
  40. Translate Folder‚Ķ
  41. - pathname to the folder of images to be translated.
  42. - pathname of folder to which the image windows will be saved.
  43. - save format name (must match one of the popup menu formats EXACTLY).
  44.   If there is a subformat, use a colon to separate the two names; e.g. "Targa:Compressed".
  45. - save # colors (must match one of the popup menu color entries EXACTLY).
  46. - aspect ratio (must match one of the popup menu aspect entries EXACTLY).
  47. - naming method will be whatever is currently set in the program.
  48.  
  49. Copy
  50. - none. Current window contents will be copied into the clipboard.
  51.  
  52. Paste
  53. - none. A new window will be opened, and the contents of the clipboard will be pasted into it.
  54.  
  55. Tile128x96
  56. - none. Set window mode to Tile mode.
  57. Tile4x3
  58. - none. Set window mode to Tile mode.
  59. Stagger
  60. - none. Set window mode to Stagger mode.
  61. Single
  62. - none. Set window mode to Single mode.
  63.                         
  64. Quit
  65. - none. The program will quit.
  66.  
  67.  
  68. NOTES:
  69. - It is very important, when doing an "open file" AppleScript command, to set the File:Preferences:Drag & Drop option to "Slideshow Dropped Files‚Ķ". If not set this way, the opened file will be translated instead of opened.
  70. - Reader and writer preferences can't be changed via AppleScript. If more control is needed,
  71.     purchase DeBabelizer, from which all preferences can be controlled.
  72. - Photoshop plugins can't be executed via AppleScript. If plug-ins must be executed in this
  73.     manner, purchase DeBabelizer, from which all plug-ins can be remotely executed.
  74.     Setting plug-in parameters via AppleScript is impossible without DeBabelizer's ability
  75.     to export an AppleScript containing a plug-in's parameters.
  76.  
  77. Examples:
  78.  
  79. OPEN an image file:
  80. tell application "DeBabelizer Lite¬Æ"
  81.     open file "Imagesx:PICT,SCRN files:364"
  82. end tell
  83. [NOTE: It is very important, when doing an "open file" AppleScript command, to set the File:Preferences:Drag & Drop option to "Slideshow Dropped Files‚Ķ". If not set this way, the opened file will be translated instead of opened.]
  84.  
  85. PRINT an image file:
  86. tell application "DeBabelizer Lite¬Æ"
  87.     print file "Imagesx:PICT,SCRN files:364"
  88. end tell
  89.  
  90. NOTE: unfortunately, it brings up the Page Setup and Print dialogs which the user must then handle.
  91.  
  92. QUIT:
  93. tell application "DeBabelizer Lite¬Æ"
  94.     quit
  95. end tell
  96.  
  97. TRANSLATE WINDOWS:
  98. tell application "DeBabelizer Lite¬Æ"
  99.     do script "Translate Windows‚Ķ
  100. \"Gurbuge:test out:\"
  101. \"GIF\"
  102. \"Automatic\"
  103. \"No Change\"
  104. "
  105. end tell
  106.  
  107. SLIDESHOW FOLDER:
  108. tell application "DeBabelizer Lite¬Æ"
  109.     do script "Slideshow Folder‚Ķ
  110. \"Gurbuge:test out:\"
  111. end tell
  112.  
  113.